<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="description" content="google app engine blog"/>
<meta name="keywords" content="google app engine blog python linux opensource django"/> 
<meta name="author" content="fla.sam@gmail.com"/> 
<link rel="stylesheet" type="text/css" href="/static/blog/default.css" media="screen"/>
<script type="text/javascript" src="/static/blog/mootools.js"></script>
<script src="/static/blog/nicEdit.js" type="text/javascript"></script>
{% load gappblogtags %}
<title>Google App Engine Blog</title>
</head>
<body>
<div class="container">
    <div class="header">
        <div class="title">
            <h1>Google App Engine Blog</h1>
        </div>
        <div class="navigation">
            <a href="/">Home</a>
            <a href="/blog/" alt="Blog">Blog</a>
            <a href="/about/" alt="About">About</a>
            {% if is_logined %}<a href="{{ user_login_logout_url }}"alt="Logout">Welcome {{ user_name }}</a>{% endif %}
            <div class="clearer"><span></span></div>
        </div>
     </div>
    <div class="main">
        <div class="content">
			<form method="post" action="/blog/article/edit/{{ article.key }}/">
                <h1><legend>Edit Article</legend></h1>
				<div>&nbsp;</div>
			<div class="formdiv">
				<label for="title"><span>Title:</span></label><input name="key" type="hidden" value="{{ article.key }}"/>
				<input id="title" type="text" name="title" value="{{ article.article_title }}" />
			</div>
			<div>&nbsp;</div>
			<div class="formdiv">
				<label for="content"><span>Content:&nbsp;<a href="#" onClick="togglEditor();">Change text editor</a></span></label>
				<textarea name="content" rows="20" cols="60" id="texteditor" >{{ article.article_content }}</textarea>
			</div>
			<div>&nbsp;</div>
			<div class="formdiv">
				<label for="tag"><span>Tag:</span><em>use comma to split tag name</em></label>
				<input id="tag" type="text" name="tag" value="{{ article_tags }}" />
			</div>
			<div>&nbsp;</div>
			<div class="formdiv">
				<label for="tag"><span>Public:</span><em></em></label>
				<input type="checkbox" name="public" class="acheckbox" {% if article.article_publiced %}checked="checked"  value="on"{% endif %}}>
			</div>
			<div>&nbsp;</div>
			<div class="formdiv">
				<label for="submit"><span>&nbsp;</span></label>
				<input type="submit" name="submit" value="submit" class="abutton">
			</div>
			<div>&nbsp;</div>
				<script type="text/javascript">
					var content_area;
					function togglEditor() {
						if(!content_area) {
							content_area = new nicEditor({fullPanel: true, xhtml: true, iconsPath: '/static/blog/img/nicEditorIcons.gif'
							}).panelInstance('texteditor',{hasPanel : true});
						} else {
							content_area.removeInstance('texteditor');
							content_area = null;
						}
					}

					bkLib.onDomLoaded(function() { togglEditor(); });
				</script>
			</form>
		</div>
        <div class="sidenav">
            <div class="marginbottom">
            <h1>Site</h1>
            <ul>
            <li><a href="#" alt="Subscribe RSS"><img src="/static/blog/img/rss_11.png" WIDTH="11" HEIGHT="11" BORDER="0" ALT="Subscribe RSS">&nbsp;Subscribe RSS&nbsp;</a></li>
            {% if is_admin %}
            <li><a href="/blog/article/add/" alt="Add Article"><img src="/static/blog/img/article_11.png" WIDTH="11" HEIGHT="11" BORDER="0">&nbsp;Add New Article</a></li>
            <li><a href="/blog/options/site/" alt="Admin Port"><img src="/static/blog/img/site_options_11.png" WIDTH="11" HEIGHT="11" BORDER="0" ALT="Login">&nbsp;Site Options</a></li>
            {% endif %}
            <li><a href="{{ user_login_logout_url }}" alt="Logout"><img src="/static/blog/img/user_11.png" WIDTH="11" HEIGHT="11" BORDER="0" ALT="Login">&nbsp;{{ user_login_logout_name}}</a></li>
            </ul>
            </div>
        </div>
        <div class="clearer"><span></span></div>
    </div>
	<div class="footer">© 2008 <a href="http://snote.appspot.com">SNote </a>Template design by <a href="http://arcsin.se">Arcsin </a>Powered by <a href="http://code.google.com/appengine/">Google App Engine</a></div>
</body>
</html>